package com.example.communist_app_api.db.pojoDto;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * <h4>community-uniapp</h4>
 * <p></p>
 *
 * @author : Lowell
 * @date : 2023-01-15 00:01
 **/
@Data
@Document(collection = "notice")
public class NoticeEntity implements Serializable {

    @Id
    private String _id;

    @Indexed(unique = true)
    private String uuid;

    @Indexed
    private Integer senderId;

    private String senderPhoto="";

    private String senderName;

    private String msg;

    @Indexed
    private Date sendTime;



}
